package com.java.study.invoker.config;

import com.java.study.invoker.robbin.CustomerLBPing;
import com.java.study.invoker.robbin.CustomerLBRule;
import com.netflix.loadbalancer.IPing;
import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;

public class WebConfig {

    @Bean
    public IRule getRule() {
        return new CustomerLBRule(null);
    }

    @Bean
    public IPing getPing(){
        return new CustomerLBPing();
    }
}
